--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Commit bcf1c8753b10e1c4bd799623d9277fddf0299a5e
Parents : 560d59c
Author : Ivan <ivan@quad4.io>
Signature : Signature validation error
Date : 2026-05-18T05:10:27-05:00
chore(scripts): improve wheel fetching and add retries
Changes
Diff
diff --git a/scripts/build/fetch_repository_wheels.py b/scripts/build/fetch_repository_wheels.py
index cfd7d3df..33d154a7 100644
--- a/scripts/build/fetch_repository_wheels.py
+++ b/scripts/build/fetch_repository_wheels.py
@@ -67,6 +67,18 @@ def main(argv: list[str] | None = None) -> int:
args = parser.parse_args(argv)
dest: Path = args.dest.resolve()
+ if _is_truthy(os.environ.get("MESHCHATX_OFFLINE_BUILD")):
+ if dest.is_dir() and any(dest.glob("*.whl")):
+ logging.info(
+ "MESHCHATX_OFFLINE_BUILD=1 and repository bundled wheels already present; skipping fetch."
+ )
+ return 0
+ logging.error(
+ "MESHCHATX_OFFLINE_BUILD=1 but repository bundled wheels are missing at %s",
+ dest,
+ )
+ return 1
+
from meshchatx.src.backend.repository_server_manager import (
download_bundled_wheels_to_directory,
)
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────